/**
 * Codeup向吊顶个人设置弹窗中注册的四个菜单，为了便于 CodeSplitting 用一个 index
 */

import React from 'react';
import Gpg from './gpg';
import HttpsPw from './httpsPw';
import PersonalAccessToken from './personalAccessToken';
import SshKey from './sshKey';

const Personalsettings = ({ type }) => {
  let component = null;
  switch (type) {
    case 'Gpg':
      component = <Gpg />;
      break;
    case 'HttpsPw':
      component = <HttpsPw />;
      break;
    case 'PersonalAccessToken':
      component = <PersonalAccessToken />;
      break;
    case 'SshKey':
      component = <SshKey />;
      break;
    default:
      break;
  }
  return <>{component}</>;
};

export default Personalsettings;
